package com.ourteam.system.dao;

/**
 * Template Name : DAO数据对象
 * Template Version : 1
 * Template Last Modfiy Date : Fri Aug 18 15:51:23 CST 2017
 * Auto Generate Date : 2018-07-31 15:13:20
  * Warning ! This file will be overwrite when regenerate !
  *
 */
import org.apache.commons.lang.StringUtils;


public class SysDomain implements java.io.Serializable {
    private long id;

    /**
     * Attribute id Be Seted Falg
     */
    private boolean idSetted = false;

    /**
    * Attribute id is Null Falg
    */
    private boolean idNull = false;
    private String domainCode;

    /**
     * Attribute domainCode Be Seted Falg
     */
    private boolean domainCodeSetted = false;

    /**
    * Attribute domainCode is Null Falg
    */
    private boolean domainCodeNull = false;
    private String domainIcon;

    /**
     * Attribute domainIcon Be Seted Falg
     */
    private boolean domainIconSetted = false;

    /**
    * Attribute domainIcon is Null Falg
    */
    private boolean domainIconNull = false;
    private String domainName;

    /**
     * Attribute domainName Be Seted Falg
     */
    private boolean domainNameSetted = false;

    /**
    * Attribute domainName is Null Falg
    */
    private boolean domainNameNull = false;
    private String domainTitelKey;

    /**
     * Attribute domainTitelKey Be Seted Falg
     */
    private boolean domainTitelKeySetted = false;

    /**
    * Attribute domainTitelKey is Null Falg
    */
    private boolean domainTitelKeyNull = false;
    private String remarks;

    /**
     * Attribute remarks Be Seted Falg
     */
    private boolean remarksSetted = false;

    /**
    * Attribute remarks is Null Falg
    */
    private boolean remarksNull = false;
    private Integer sortIndex;

    /**
     * Attribute sortIndex Be Seted Falg
     */
    private boolean sortIndexSetted = false;

    /**
    * Attribute sortIndex is Null Falg
    */
    private boolean sortIndexNull = false;
    private String status;

    /**
     * Attribute status Be Seted Falg
     */
    private boolean statusSetted = false;

    /**
    * Attribute status is Null Falg
    */
    private boolean statusNull = false;
    private String domainShortName;

    /**
     * Attribute domainShortName Be Seted Falg
     */
    private boolean domainShortNameSetted = false;

    /**
    * Attribute domainShortName is Null Falg
    */
    private boolean domainShortNameNull = false;
    private String domainSmallIcon;

    /**
     * Attribute domainSmallIcon Be Seted Falg
     */
    private boolean domainSmallIconSetted = false;

    /**
    * Attribute domainSmallIcon is Null Falg
    */
    private boolean domainSmallIconNull = false;
    private byte[] domainIconContent;

    /**
     * Attribute domainIconContent Be Seted Falg
     */
    private boolean domainIconContentSetted = false;

    /**
    * Attribute domainIconContent is Null Falg
    */
    private boolean domainIconContentNull = false;
    private byte[] domainSmallIconContent;

    /**
     * Attribute domainSmallIconContent Be Seted Falg
     */
    private boolean domainSmallIconContentSetted = false;

    /**
    * Attribute domainSmallIconContent is Null Falg
    */
    private boolean domainSmallIconContentNull = false;

    public SysDomain() {
        super();
    }

    /**
         * Get id
         *
         * @return long
         */
    final public long getId() {
        return id;
    }

    /**
     * Set id
     *
     * @param long
     */
    final public void setId(long id) {
        this.id = id;

        this.idSetted = true;

        this.setIdNull(false);
    }

    /**
     * Get id Has Been Setted
     *
     * @return boolean
     */
    final public boolean isIdSetted() {
        return this.idSetted;
    }

    /**
     * Set id Null
     *
     */
    final public void setIdNull() {
        this.idNull = true;
    }

    final public void setIdNull(boolean aNullFlag) {
        this.idNull = aNullFlag;
    }

    final public boolean isIdNull() {
        return this.idNull;
    }

    /**
         * Get domainCode
         *
         * @return String
         */
    final public String getDomainCode() {
        if (isDomainCodeNull()) {
            return null;
        } else {
            return StringUtils.trim(domainCode);
        }
    }

    /**
     * Set domainCode
     *
     * @param String
     */
    final public void setDomainCode(String domainCode) {
        this.domainCode = StringUtils.trim(domainCode);

        this.domainCodeSetted = true;

        this.setDomainCodeNull(this.domainCode == null);
    }

    /**
     * Get domainCode Has Been Setted
     *
     * @return boolean
     */
    final public boolean isDomainCodeSetted() {
        return this.domainCodeSetted;
    }

    /**
     * Set domainCode Null
     *
     */
    final public void setDomainCodeNull() {
        this.domainCodeNull = true;
    }

    final public void setDomainCodeNull(boolean aNullFlag) {
        this.domainCodeNull = aNullFlag;
    }

    final public boolean isDomainCodeNull() {
        return this.domainCodeNull;
    }

    /**
         * Get domainIcon
         *
         * @return String
         */
    final public String getDomainIcon() {
        if (isDomainIconNull()) {
            return null;
        } else {
            return StringUtils.trim(domainIcon);
        }
    }

    /**
     * Set domainIcon
     *
     * @param String
     */
    final public void setDomainIcon(String domainIcon) {
        this.domainIcon = StringUtils.trim(domainIcon);

        this.domainIconSetted = true;

        this.setDomainIconNull(this.domainIcon == null);
    }

    /**
     * Get domainIcon Has Been Setted
     *
     * @return boolean
     */
    final public boolean isDomainIconSetted() {
        return this.domainIconSetted;
    }

    /**
     * Set domainIcon Null
     *
     */
    final public void setDomainIconNull() {
        this.domainIconNull = true;
    }

    final public void setDomainIconNull(boolean aNullFlag) {
        this.domainIconNull = aNullFlag;
    }

    final public boolean isDomainIconNull() {
        return this.domainIconNull;
    }

    /**
         * Get domainName
         *
         * @return String
         */
    final public String getDomainName() {
        if (isDomainNameNull()) {
            return null;
        } else {
            return StringUtils.trim(domainName);
        }
    }

    /**
     * Set domainName
     *
     * @param String
     */
    final public void setDomainName(String domainName) {
        this.domainName = StringUtils.trim(domainName);

        this.domainNameSetted = true;

        this.setDomainNameNull(this.domainName == null);
    }

    /**
     * Get domainName Has Been Setted
     *
     * @return boolean
     */
    final public boolean isDomainNameSetted() {
        return this.domainNameSetted;
    }

    /**
     * Set domainName Null
     *
     */
    final public void setDomainNameNull() {
        this.domainNameNull = true;
    }

    final public void setDomainNameNull(boolean aNullFlag) {
        this.domainNameNull = aNullFlag;
    }

    final public boolean isDomainNameNull() {
        return this.domainNameNull;
    }

    /**
         * Get domainTitelKey
         *
         * @return String
         */
    final public String getDomainTitelKey() {
        if (isDomainTitelKeyNull()) {
            return null;
        } else {
            return StringUtils.trim(domainTitelKey);
        }
    }

    /**
     * Set domainTitelKey
     *
     * @param String
     */
    final public void setDomainTitelKey(String domainTitelKey) {
        this.domainTitelKey = StringUtils.trim(domainTitelKey);

        this.domainTitelKeySetted = true;

        this.setDomainTitelKeyNull(this.domainTitelKey == null);
    }

    /**
     * Get domainTitelKey Has Been Setted
     *
     * @return boolean
     */
    final public boolean isDomainTitelKeySetted() {
        return this.domainTitelKeySetted;
    }

    /**
     * Set domainTitelKey Null
     *
     */
    final public void setDomainTitelKeyNull() {
        this.domainTitelKeyNull = true;
    }

    final public void setDomainTitelKeyNull(boolean aNullFlag) {
        this.domainTitelKeyNull = aNullFlag;
    }

    final public boolean isDomainTitelKeyNull() {
        return this.domainTitelKeyNull;
    }

    /**
         * Get remarks
         *
         * @return String
         */
    final public String getRemarks() {
        if (isRemarksNull()) {
            return null;
        } else {
            return StringUtils.trim(remarks);
        }
    }

    /**
     * Set remarks
     *
     * @param String
     */
    final public void setRemarks(String remarks) {
        this.remarks = StringUtils.trim(remarks);

        this.remarksSetted = true;

        this.setRemarksNull(this.remarks == null);
    }

    /**
     * Get remarks Has Been Setted
     *
     * @return boolean
     */
    final public boolean isRemarksSetted() {
        return this.remarksSetted;
    }

    /**
     * Set remarks Null
     *
     */
    final public void setRemarksNull() {
        this.remarksNull = true;
    }

    final public void setRemarksNull(boolean aNullFlag) {
        this.remarksNull = aNullFlag;
    }

    final public boolean isRemarksNull() {
        return this.remarksNull;
    }

    /**
         * Get sortIndex
         *
         * @return Integer
         */
    final public Integer getSortIndex() {
        return sortIndex;
    }

    /**
     * Set sortIndex
     *
     * @param Integer
     */
    final public void setSortIndex(Integer sortIndex) {
        this.sortIndex = sortIndex;

        this.sortIndexSetted = true;

        this.setSortIndexNull(this.sortIndex == null);
    }

    /**
     * Get sortIndex Has Been Setted
     *
     * @return boolean
     */
    final public boolean isSortIndexSetted() {
        return this.sortIndexSetted;
    }

    /**
     * Set sortIndex Null
     *
     */
    final public void setSortIndexNull() {
        this.sortIndexNull = true;
    }

    final public void setSortIndexNull(boolean aNullFlag) {
        this.sortIndexNull = aNullFlag;
    }

    final public boolean isSortIndexNull() {
        return this.sortIndexNull;
    }

    /**
         * Get status
         *
         * @return String
         */
    final public String getStatus() {
        if (isStatusNull()) {
            return null;
        } else {
            return StringUtils.trim(status);
        }
    }

    /**
     * Set status
     *
     * @param String
     */
    final public void setStatus(String status) {
        this.status = StringUtils.trim(status);

        this.statusSetted = true;

        this.setStatusNull(this.status == null);
    }

    /**
     * Get status Has Been Setted
     *
     * @return boolean
     */
    final public boolean isStatusSetted() {
        return this.statusSetted;
    }

    /**
     * Set status Null
     *
     */
    final public void setStatusNull() {
        this.statusNull = true;
    }

    final public void setStatusNull(boolean aNullFlag) {
        this.statusNull = aNullFlag;
    }

    final public boolean isStatusNull() {
        return this.statusNull;
    }

    /**
         * Get domainShortName
         *
         * @return String
         */
    final public String getDomainShortName() {
        if (isDomainShortNameNull()) {
            return null;
        } else {
            return StringUtils.trim(domainShortName);
        }
    }

    /**
     * Set domainShortName
     *
     * @param String
     */
    final public void setDomainShortName(String domainShortName) {
        this.domainShortName = StringUtils.trim(domainShortName);

        this.domainShortNameSetted = true;

        this.setDomainShortNameNull(this.domainShortName == null);
    }

    /**
     * Get domainShortName Has Been Setted
     *
     * @return boolean
     */
    final public boolean isDomainShortNameSetted() {
        return this.domainShortNameSetted;
    }

    /**
     * Set domainShortName Null
     *
     */
    final public void setDomainShortNameNull() {
        this.domainShortNameNull = true;
    }

    final public void setDomainShortNameNull(boolean aNullFlag) {
        this.domainShortNameNull = aNullFlag;
    }

    final public boolean isDomainShortNameNull() {
        return this.domainShortNameNull;
    }

    /**
         * Get domainSmallIcon
         *
         * @return String
         */
    final public String getDomainSmallIcon() {
        if (isDomainSmallIconNull()) {
            return null;
        } else {
            return StringUtils.trim(domainSmallIcon);
        }
    }

    /**
     * Set domainSmallIcon
     *
     * @param String
     */
    final public void setDomainSmallIcon(String domainSmallIcon) {
        this.domainSmallIcon = StringUtils.trim(domainSmallIcon);

        this.domainSmallIconSetted = true;

        this.setDomainSmallIconNull(this.domainSmallIcon == null);
    }

    /**
     * Get domainSmallIcon Has Been Setted
     *
     * @return boolean
     */
    final public boolean isDomainSmallIconSetted() {
        return this.domainSmallIconSetted;
    }

    /**
     * Set domainSmallIcon Null
     *
     */
    final public void setDomainSmallIconNull() {
        this.domainSmallIconNull = true;
    }

    final public void setDomainSmallIconNull(boolean aNullFlag) {
        this.domainSmallIconNull = aNullFlag;
    }

    final public boolean isDomainSmallIconNull() {
        return this.domainSmallIconNull;
    }

    /**
         * Get domainIconContent
         *
         * @return byte[]
         */
    final public byte[] getDomainIconContent() {
        return domainIconContent;
    }

    /**
     * Set domainIconContent
     *
     * @param byte[]
     */
    final public void setDomainIconContent(byte[] domainIconContent) {
        this.domainIconContent = domainIconContent;

        this.domainIconContentSetted = true;

        this.setDomainIconContentNull(this.domainIconContent == null);
    }

    /**
     * Get domainIconContent Has Been Setted
     *
     * @return boolean
     */
    final public boolean isDomainIconContentSetted() {
        return this.domainIconContentSetted;
    }

    /**
     * Set domainIconContent Null
     *
     */
    final public void setDomainIconContentNull() {
        this.domainIconContentNull = true;
    }

    final public void setDomainIconContentNull(boolean aNullFlag) {
        this.domainIconContentNull = aNullFlag;
    }

    final public boolean isDomainIconContentNull() {
        return this.domainIconContentNull;
    }

    /**
         * Get domainSmallIconContent
         *
         * @return byte[]
         */
    final public byte[] getDomainSmallIconContent() {
        return domainSmallIconContent;
    }

    /**
     * Set domainSmallIconContent
     *
     * @param byte[]
     */
    final public void setDomainSmallIconContent(byte[] domainSmallIconContent) {
        this.domainSmallIconContent = domainSmallIconContent;

        this.domainSmallIconContentSetted = true;

        this.setDomainSmallIconContentNull(this.domainSmallIconContent == null);
    }

    /**
     * Get domainSmallIconContent Has Been Setted
     *
     * @return boolean
     */
    final public boolean isDomainSmallIconContentSetted() {
        return this.domainSmallIconContentSetted;
    }

    /**
     * Set domainSmallIconContent Null
     *
     */
    final public void setDomainSmallIconContentNull() {
        this.domainSmallIconContentNull = true;
    }

    final public void setDomainSmallIconContentNull(boolean aNullFlag) {
        this.domainSmallIconContentNull = aNullFlag;
    }

    final public boolean isDomainSmallIconContentNull() {
        return this.domainSmallIconContentNull;
    }

    public int hashCode() {
        final int prime = 31;
        int result = 1;

        result = (prime * result) + (int) (getId() ^ (getId() >>> 32));

        return result;
    }

    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }

        if ((obj instanceof SysDomain) == false) {
            return false;
        }

        SysDomain other = (SysDomain) obj;

        if (getId() != other.getId()) {
            return false;
        }

        return true;
    }

    public String toString() {
        StringBuffer buffer = new StringBuffer();

        buffer.append("[");

        buffer.append("domainIconContent=");
        buffer.append(this.domainIconContent);

        buffer.append("domainSmallIconContent=");
        buffer.append(this.domainSmallIconContent);

        buffer.append("id=");
        buffer.append(this.id);

        buffer.append("domainCode=");
        buffer.append(this.domainCode);

        buffer.append("domainIcon=");
        buffer.append(this.domainIcon);

        buffer.append("domainName=");
        buffer.append(this.domainName);

        buffer.append("domainTitelKey=");
        buffer.append(this.domainTitelKey);

        buffer.append("remarks=");
        buffer.append(this.remarks);

        buffer.append("sortIndex=");
        buffer.append(this.sortIndex);

        buffer.append("status=");
        buffer.append(this.status);

        buffer.append("domainShortName=");
        buffer.append(this.domainShortName);

        buffer.append("domainSmallIcon=");
        buffer.append(this.domainSmallIcon);

        buffer.append("]");

        return buffer.toString();
    }
}
